const fs = require("fs")
// var sql = "INSERT INTO `crm_promotion_activity_tbl` (`tenant_id`,`name`,`account`,`balance`,`start_time`,`end_time`,`promotion_rules`,`approval_status`,`memo`,`approvalor`,`operator`,`record_status`,`create_time`,`update_time`,`promotion_type`,`sale_googs_flag`,`sale_region_flag`,`promotion_mode`,`promotion_scope`,`promotion_mutex`,`sales_type`) VALUES ('c200000','88888999',8888.00,8888.00,'2019-11-21 00:00:00.000000','2019-11-28 00:00:00.000000','[{\\\"count\\\":0,\\\"discount\\\":\\\"2\\\"}]','2','8888uuuu',NULL,'admin','1','2019-11-21 13:54:28.997000','2019-11-21 14:00:04.086121','2','2','1','2','2','1','2');"
var sql = "{\"skuId\":dddd,\"itemCount\":10000,\"itemPrice\":5}"
let a = "";
for(let i=652468;i<652567;i++){
    a = a+","+sql.replace("dddd",i);
}
fs.writeFile("insert.sql",a,{ 'flag': 'a' },function (error) {
    if(error){
        throw error

    }

});




